<!--
  @author duanzuocai
  @since 2018/12/13 13:21
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>系统模块权限列表</title>
</head>

<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
       系统管理>
        <a lay-href="/system/organ/list.action" lay-text="权限管理" th:text="权限管理">权限管理</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/mc/permit/list.action">
            <div class="layui-form" th:include="mc/permit/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <table class="layui-hide" id="zmn-permit-table" lay-filter="zmn-permit-table"></table>

            <script type="text/html" id="zmn-permit-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/mc/permit/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/mc/permit/detail.action')}">
                            <button class="layui-btn layui-btn-sm layui-btn-primary">
                                <i class="layui-icon"></i>
                                <a lay-href="/mc/permit/detail.action">添加权限</a>
                            </button>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/mc/permit/list.action')}]],
        hasEdit: [[${#authPermit.checkPermit('/mc/permit/detail.action')}]],
        hasSort: [[${#authPermit.checkPermit('/mc/permit/updateSort.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        art_permit_list: "mc/permit/zmn.art.permit.list",
    }).use(['index', 'art_permit_list']);

</script>
</body>
</html>